package com.ljkj.cordial.chat.util;

import android.content.Context;

import com.lanjiu.lib.imclient.user.UserPreferences;
import com.nic.view.util.SharedUtils;

/**
 * @description:
 * @author: Panwei
 * @date: 2020/1/11 15:36
 */
public class SharedUserUtils {

    SharedUserUtils() {
    }

    public static Object get(Context context, String key, Object defaultObject) {
        return SharedUtils.get(context, key + "_" + UserPreferences.getUserId(), defaultObject);
    }

    public static void put(Context context, String key, Object defaultObject) {
        SharedUtils.put(context, key + "_" + UserPreferences.getUserId(), defaultObject);
    }

    public static void remove(Context context, String key) {
        SharedUtils.remove(context, key + "_" + UserPreferences.getUserId());
    }
}
